package edu.suda.LoopCodePlus.mapper;

import edu.suda.LoopCodePlus.entity.CompetitionRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CompetitionRecordMapper {
    /** 插入新的竞赛记录 */
    void insertCompetitionRecord(CompetitionRecord competitionRecord);
    /** 根据竞赛id查询竞赛记录 */
    CompetitionRecord select_CompetitionRecordById(Integer comId);
    /** 根据用户id查询所有的竞赛记录 */
    List<CompetitionRecord> select_CompetitionRecordByUserId(Integer userId);
}
